package com.pinxixi.api.content;

import com.pinxixi.framework.domain.content.Content;
import com.pinxixi.framework.model.response.ListResponseResult;
import com.pinxixi.framework.model.response.QueryResponseResult;
import com.pinxixi.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value="广告微服务API",description = "广告微服务CRUD")
public interface ContentControllerApi {

    @ApiOperation("广告列表接口")
    ListResponseResult<Content> findAll();

    @ApiOperation("广告添加")
    ResponseResult save(Content content);

    @ApiOperation("广告查询接口")
    QueryResponseResult findOne(Long id);

    @ApiOperation("广告删除接口")
    ResponseResult delete(Long id);

    @ApiOperation("门户广告接口")
    ListResponseResult<Content> portalContent();

}
